﻿using MES.Server.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MES.Server.IService
{
    public interface IRoleService
    {
        RoleEntity[] GetRoleByIds(int[] id);

        RoleEntity[] GetAllRoles(string key);

        bool CheckRoleName(string roleName, int id);

        int Update(RoleEntity role);

        int Delete(int[] ids);

        int UpdateRoleMenus(RoleMenuEntity[] rms);

        int UpdateRoleUsers(RoleUserEntity[] users);

        int DeleteRoleUser(int rid, int uid);
    }
}
